home *** CD-ROM | disk | FTP | other *** search
-
-
-
- wwwwaaaaiiiittttiiiidddd((((2222)))) wwwwaaaaiiiittttiiiidddd((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- _wwww_aaaa_iiii_tttt_iiii_dddd - wait for child process to change state
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_tttt_yyyy_pppp_eeee_ssss_...._hhhh_>>>>
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_wwww_aaaa_iiii_tttt_...._hhhh_>>>>
- _iiii_nnnn_tttt _wwww_aaaa_iiii_tttt_iiii_dddd_((((_iiii_dddd_tttt_yyyy_pppp_eeee______tttt _iiii_dddd_tttt_yyyy_pppp_eeee_,,,, _iiii_dddd______tttt _iiii_dddd_,,,, _ssss_iiii_gggg_iiii_nnnn_ffff_oooo______tttt _****_iiii_nnnn_ffff_oooo_pppp_,,,, _iiii_nnnn_tttt _oooo_pppp_tttt_iiii_oooo_nnnn_ssss_))))_;;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _wwww_aaaa_iiii_tttt_iiii_dddd suspends the calling process until one of its children changes
- state. It records the current state of a child in the structure pointed
- to by _i_n_f_o_p. If a child process changed state prior to the call to
- _wwww_aaaa_iiii_tttt_iiii_dddd, _wwww_aaaa_iiii_tttt_iiii_dddd returns immediately.
-
- The _i_d_t_y_p_e and _i_d arguments specify which children _wwww_aaaa_iiii_tttt_iiii_dddd is to wait for.
-
- If _i_d_t_y_p_e is _PPPP______PPPP_IIII_DDDD, _wwww_aaaa_iiii_tttt_iiii_dddd waits for the child with a process ID
- equal to _((((_pppp_iiii_dddd______tttt_)))) _i_d.
-
- If _i_d_t_y_p_e is _PPPP______PPPP_GGGG_IIII_DDDD, _wwww_aaaa_iiii_tttt_iiii_dddd waits for any child with a process group
- ID equal to _((((_pppp_iiii_dddd______tttt_))))_i_d.
-
- If _i_d_t_y_p_e is _PPPP______AAAA_LLLL_LLLL, _wwww_aaaa_iiii_tttt_iiii_dddd waits for any children and _i_d is ignored.
-
- The _o_p_t_i_o_n_s argument is used to specify which state changes _w_a_i_t_i_d is to
- wait for. It is formed by an OR of any of the following flags:
-
- _WWWW_EEEE_XXXX_IIII_TTTT_EEEE_DDDD Wait for process(es) to exit.
-
- _WWWW_TTTT_RRRR_AAAA_PPPP_PPPP_EEEE_DDDD Wait for traced process(es) to become trapped or reach a
- breakpoint (see _pppp_tttt_rrrr_aaaa_cccc_eeee(2)).
-
- _WWWW_SSSS_TTTT_OOOO_PPPP_PPPP_EEEE_DDDD Wait for and return the process status of any child that
- has stopped upon receipt of a signal.
-
- _WWWW_CCCC_OOOO_NNNN_TTTT_IIII_NNNN_UUUU_EEEE_DDDD Return the status for any child that was stopped and has
- been continued.
-
- _WWWW_NNNN_OOOO_HHHH_AAAA_NNNN_GGGG Return immediately.
-
- _WWWW_NNNN_OOOO_WWWW_AAAA_IIII_TTTT Keep the process in a waitable state.
-
- _i_n_f_o_p must point to a _ssss_iiii_gggg_iiii_nnnn_ffff_oooo______tttt structure, as defined in _ssss_iiii_gggg_iiii_nnnn_ffff_oooo(5).
- _ssss_iiii_gggg_iiii_nnnn_ffff_oooo______tttt is filled in by the system with the status of the process being
- waited for.
-
- _wwww_aaaa_iiii_tttt_iiii_dddd fails if one or more of the following is true.
-
- _EEEE_FFFF_AAAA_UUUU_LLLL_TTTT _i_n_f_o_p points to an invalid address.
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- wwwwaaaaiiiittttiiiidddd((((2222)))) wwwwaaaaiiiittttiiiidddd((((2222))))
-
-
-
- _EEEE_IIII_NNNN_TTTT_RRRR _wwww_aaaa_iiii_tttt_iiii_dddd was interrupted due to the receipt of a signal by
- the calling process.
-
- _EEEE_IIII_NNNN_VVVV_AAAA_LLLL An invalid value was specified for _o_p_t_i_o_n_s.
-
- _EEEE_IIII_NNNN_VVVV_AAAA_LLLL _i_d_t_y_p_e and _i_d specify an invalid set of processes.
-
- _EEEE_CCCC_HHHH_IIII_LLLL_DDDD The set of processes specified by _i_d_t_y_p_e and _i_d does not
- contain any unwaited-for processes.
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- If _wwww_aaaa_iiii_tttt_iiii_dddd returns due to a change of state of one of its children, a
- value of 0 is returned. If _WWWW_NNNN_OOOO_HHHH_AAAA_NNNN_GGGG was specified, 0 may also be returned
- indicating no error. Otherwise, a value of -1 is returned and _eeee_rrrr_rrrr_nnnn_oooo is
- set to indicate the error.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- exec(2), exit(2), fork(2), intro(2), pause(2), ptrace(2), sigaction(2),
- signal(2), wait(2), siginfo(5)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-